import events from 'events'
const emitter = new events.EventEmitter()
emitter.on('abc', (arg) => {
  console.log('watch error', arg)
})
emitter.emit('abc', new Error('abc'))